package com.softWang.system.controller.vo.systemArea;

import com.softWang.common.validation.InEnum;
import com.softWang.system.constants.AreaTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
 * <p>
 * 系统管理--行政区划代码表新增时数据内容
 * </p>
 *
 * @author wang
 * @since 2025-07-21
 */
@Data
@ApiModel
public class SystemAreaAddParam {
    @ApiModelProperty(value = "区域代码")
    @NotNull(message = "code不能为空")
    private Long code;

    @ApiModelProperty(value = "区域名称,长度100")
    @NotBlank(message = "areaName不能为空")
    @Size(max = 100, message = "areaName最大长度为100")
    private String areaName;

    @ApiModelProperty(value = "区域类型(1:国家;2:省份;3:城市;4:地区(县、镇、区等),长度10")
    @NotNull(message = "type不能为空")
    @InEnum(value = AreaTypeEnum.class, message = "type值必须在{value}范围内")
    private Integer type;

    @ApiModelProperty(value = "父code")
    @NotNull(message = "pid不能为空")
    private Long pid;
}
